$(document).ready(function(){
	$(".log_c").on("blur",".l_user",function(){
		var name=$(".l_user").val();
		if(name==""||name=null){
			alert("用户名不能为空！");
		}else{
			$.ajax({
				"url":"servlet/AjaxZhuc",
				"type":"post",
				"data":"opr=pwd&l_user="+name,
				"dataType":"JSON",
				"success":login
			});
			function login(data){
				if(data[0].status=="error"){
					alert(data[0].hint);
					$(".l_user").val("");
				}else if (data[0].status == "success") {
					
				}
			}
		}
	});
	$(".log_c").on("blur",".log_btn"function(){
		var name=$(".l_user").val();
		var pwd=$(".log_btn").val();
		if(pwd==null||pwd==""){
			alert("请输入密码！");
		}else{
			$.ajax({
				"url":"servlet/AjaxZhuc",
				"type":"post",
				"data":"opr=pwd1&l_pwd="+pwd+"&l_user="+name,
				"dataTypr":"JSON",
				"success":password
			});
			function password(data){
				if (data[0].status == "error") {
					alert(data[0].hint);
					$(".l_pwd").val("");
				} else if (data[0].status == "success") {
					
				}
			}
		}
	})
	
})